package com.n9.buymsg.service.qqonline.converter;


import com.n9.sdk.model.PurchaseMessage;

/**
 * 求购消息过滤器
 * @Author: ice
 * @Date: 2020-07-06 9:03
 */
public interface PurchaseMessageFilter {

    /**
     * 初始化
     */
    void init();


    /**
     * 判断是否为符合要求的消息
     * @param purchaseMessage
     * @param chain
     * @return
     */
    void doFilter(PurchaseMessage purchaseMessage, FilterChain chain);
}
